import request from "@/utils/request";


/**
 * 修改云端历史作业 如果为空则 删除
 * @param data
 * @returns {Promise<AxiosResponse<any>>}
 */
export function getOrSetJsonFileByUserId(data) {
	return request({
		url: "/api/v1/system/commonData/getOrSetJsonFileByUserId",
		method: "post",
		data: data,
	});
}


/**
 * 修改云端历史作业 如果为空则 删除
 * @param data
 * @returns {Promise<AxiosResponse<any>>}
 */
export function getOrSetJsonFileCommon(data) {
	return request({
		url: "/api/v1/system/commonData/getOrSetJsonFileCommon",
		method: "post",
		data: data,
		task: true
	});
}